package org.jeecg.modules.health_records.health_social.service.impl;

import org.jeecg.modules.health_records.health_social.entity.HealthSocialInfo;
import org.jeecg.modules.health_records.health_social.mapper.HealthSocialInfoMapper;
import org.jeecg.modules.health_records.health_social.service.IHealthSocialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 社会经济学信息表
 * @Author: jeecg-boot
 * @Date:   2025-06-24
 * @Version: V1.0
 */
@Service
public class HealthSocialInfoServiceImpl extends ServiceImpl<HealthSocialInfoMapper, HealthSocialInfo> implements IHealthSocialInfoService {
    @Autowired
    private HealthSocialInfoMapper healthSocialInfoMapper;
    /**按recordid查询**/
    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<HealthSocialInfo> queryByRecordId(HealthSocialInfo healthSocialInfo) {
        return healthSocialInfoMapper.queryByRecordId(Long.valueOf(healthSocialInfo.getRecordid()),healthSocialInfo.getIdNumber());

    }

}
